# $Id: PKGBUILD 182011 2013-04-05 09:02:30Z svenstaro $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgbase=kde-l10n
pkgname=('kde-l10n-ar'
         'kde-l10n-bg'
         'kde-l10n-bs'
         'kde-l10n-ca'
         'kde-l10n-ca@valencia'
         'kde-l10n-cs'
         'kde-l10n-da'
         'kde-l10n-de'
         'kde-l10n-el'
         'kde-l10n-en_gb'
         'kde-l10n-es'
         'kde-l10n-et'
         'kde-l10n-eu'
         'kde-l10n-fa'
         'kde-l10n-fi'
         'kde-l10n-fr'
         'kde-l10n-ga'
         'kde-l10n-gl'
         'kde-l10n-he'
         'kde-l10n-hi'
         'kde-l10n-hr'
         'kde-l10n-hu'
         'kde-l10n-ia'
         'kde-l10n-is'
         'kde-l10n-it'
         'kde-l10n-ja'
         'kde-l10n-kk'
         'kde-l10n-km'
         'kde-l10n-ko'
         'kde-l10n-lt'
         'kde-l10n-lv'
         'kde-l10n-mr'
         'kde-l10n-nb'
         'kde-l10n-nds'
         'kde-l10n-nl'
         'kde-l10n-nn'
         'kde-l10n-pa'
         'kde-l10n-pl'
         'kde-l10n-pt'
         'kde-l10n-pt_br'
         'kde-l10n-ro'
         'kde-l10n-ru'
         'kde-l10n-si'
         'kde-l10n-sk'
         'kde-l10n-sl'
         'kde-l10n-sr'
         'kde-l10n-sv'
         'kde-l10n-tg'
         'kde-l10n-th'
         'kde-l10n-tr'
         'kde-l10n-ug'
         'kde-l10n-uk'
         'kde-l10n-vi'
         'kde-l10n-wa'
         'kde-l10n-zh_cn'
         'kde-l10n-zh_tw')
pkgver=4.10.2
pkgrel=1
arch=('any')
url='http://www.kde.org/'
license=('GPL')
makedepends=('cmake' 'automoc4' 'kdelibs')
options=('docs')
source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ar-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-bg-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-bs-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ca-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ca@valencia-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-cs-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-da-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-de-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-el-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-en_GB-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-es-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-et-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-eu-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-fa-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-fi-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-fr-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ga-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-gl-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-he-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-hi-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-hr-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-hu-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ia-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-is-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-it-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ja-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-kk-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-km-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ko-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-lt-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-lv-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-mr-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-nb-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-nds-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-nl-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-nn-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-pa-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-pl-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-pt-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-pt_BR-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ro-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ru-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-si-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-sk-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-sl-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-sr-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-sv-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-tg-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-th-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-tr-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-ug-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-uk-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-vi-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-wa-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-zh_CN-${pkgver}.tar.xz"
        "http://download.kde.org/stable/${pkgver}/src/${pkgbase}/${pkgbase}-zh_TW-${pkgver}.tar.xz")
sha1sums=('30b6f871c515218917116a2254a603546410c296'
         '892d115a014021049ab9cca9847a11813b6461f9'
         '572f0b347577ed702d4fc4acc2eaac9b19e7b3d9'
         '19215a158ec2b98d47d60113d97f66053051ac62'
         '3e2b1a20b0d608b99461ec0ffde6ff3b1d043444'
         '4161145947ee6721a27f4f46699d5304a70b26f5'
         'f0af6a830a7f7b8d739abe29908afd1271f31e7f'
         '4b776eb307c3993352beea784054c96d0ce68d85'
         'cd91e9caa76634a7e57178269b7cda92dd746cc7'
         '00cfe50d5ce60ae2ac17a5bf58aee61a83dbb039'
         'bcf54cec10da8b96a6db5d118215163695a2795b'
         '75b763cf2d3803bf0c0a9cdfb19b825f05027705'
         '9d1cd7127a7aa36b4aa7c27267cccd2a1e4efbe2'
         '800780529706cff6c95b8910db652ecc88df14f5'
         '88d2a21a2ee7f93293cb2f04ef0fd0bfc494ee2c'
         '90d5c2e2a9147b157769923726417b482e3bc613'
         'f843d307eb5d12aab783e620d67ab4870e5582ff'
         '4c2693f40d43c4110622b003d9658063b61a1760'
         'a82b82050def365a359dee9d945496261d69ec24'
         '673d290ac76bf7a757b9441d79926504bf16865b'
         'dbeb1a14b2ea2d55a84f612e46a7fcb944ea2fe5'
         '1382ad5aa04b99e188e39e3bb33adf3e993764fa'
         'f8459baf8e61c9627a7efa0a40c70337ab24455d'
         '30219b24465deeb7e86b499a4761695e282a155a'
         '46b91e83098edccafafad28d1c3d63ce0e642f03'
         'c2a846fbdebc436aff9f8131d0b3ee77049cd873'
         'd435be4020241cb0ecc034f4c26cc928391f84ed'
         '59ec9def9bd68d84ce25f469ef3e2ae4379578cf'
         'ff81fa02c8884249a52805806185a57e288c09da'
         '0f08de2146faaa3a7810d2107e9ba83bee7c8dd6'
         'b3a40e2adf3666391fe35a76d756dbfbc46960e3'
         '3ab5e85d20722fc26a18e7e1410866e7accfb5d1'
         '2e18e08d1194171449fecfc01427a0b62ff10d0f'
         '9f28f88ca10d7cf9598aea4d27196744d7a7e8ae'
         '6f9471bacce740b7216ccb35f4d7f3c14c42bef9'
         '390f934ff80626cca0cd3c2c73f447d251be1625'
         '59818bb999de4efb70d8a1fcd203beb542299ef5'
         '9c80fe230ce714d2961049236b25eb2c3ff9e7a5'
         '6348ef58dd05eb9365258403e40650e454fd6fab'
         '637d34b811bc9be1c2bed0cabdc43263461fea85'
         '5fec50c2675c719f0b814f095ab750301c2d12be'
         '8b6427277ab825aef9aaf144e436e6fdd70202e2'
         '8c6258ec1fb86a68705631e3f3edc8ed8a0feee8'
         '944f3e93396900f32da8af2f472a41e31ab82068'
         '9bd195eca75f2d64ca8dc428e2b51536951681a2'
         '56346b4810f38d1ba7a56e916475ca270fea4d99'
         'bf33ebef7934e699a52fb5735c9af73c430ebfd8'
         'd84e3c15d76a0593a6d8890edc37ad347bac7cf4'
         '74187663d61f86d0d44ff42d3256fb2e0a540f54'
         'bb3b1c56e294138098e043ee1313979b858ab80c'
         'f12052214e39cf78db96b1491c244160fc8f2bde'
         '2e6153b1390e979c4ad6ebb88e589d7cc922e7d5'
         '432acfc264f19e4d6a5f9dff260507e8a2d4ecfb'
         'c57b66992f86478adcef57fb9be45350b7f3df2e'
         '77a601392efc52deab08c756c0b8249357d77527'
         '2247859f09e3f0b1a99961c5fcdf0fcb4afc84a2')

build() {
  cd ${srcdir}

  for lang in ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl he hi hr hu ia is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro ru si sk sl sr sv tg th tr ug uk vi wa zh_CN zh_TW; do
    mkdir -p build/${lang}
    cd build/${lang}
    cmake ${srcdir}/${pkgbase}-${lang}-${pkgver} \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_PREFIX=/usr
    make
    cd ../..
  done
}

package_kde-l10n-ar() {
	pkgdesc=('Arabic Localization for KDE')
	cd ${srcdir}/build/ar
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-bg() {
	pkgdesc=('Bulgarian Localization for KDE')
	cd ${srcdir}/build/bg
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-bs() {
	pkgdesc=('Bosnian Localization for KDE')
	cd ${srcdir}/build/bs
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ca() {
	pkgdesc=('Catalan Localization for KDE')
	cd ${srcdir}/build/ca
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ca@valencia() {
	pkgdesc=('Catalan (Valencian) Localization for KDE')
	cd ${srcdir}/build/ca@valencia
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-cs() {
	pkgdesc=('Czech Localization for KDE')
	cd ${srcdir}/build/cs
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-da() {
	pkgdesc=('Danish Localization for KDE')
	cd ${srcdir}/build/da
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-de() {
	pkgdesc=('German Localization for KDE')
	cd ${srcdir}/build/de
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-el() {
	pkgdesc=('Greek Localization for KDE')
	cd ${srcdir}/build/el
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-en_gb() {
	pkgdesc=('British English Localization for KDE')
	cd ${srcdir}/build/en_GB
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-es() {
	pkgdesc=('Spanish Localization for KDE')
	cd ${srcdir}/build/es
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-et() {
	pkgdesc=('Estonian Localization for KDE')
	cd ${srcdir}/build/et
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-eu() {
	pkgdesc=('Basque Localization for KDE')
	cd ${srcdir}/build/eu
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-fa() {
	pkgdesc=('Farsi Localization for KDE')
	cd ${srcdir}/build/fa
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-fi() {
	pkgdesc=('Finnish Localization for KDE')
	cd ${srcdir}/build/fi
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-fr() {
	pkgdesc=('French Localization for KDE')
	cd ${srcdir}/build/fr
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ga() {
	pkgdesc=('Irish Gaelic Localization for KDE')
	cd ${srcdir}/build/ga
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-gl() {
	pkgdesc=('Galician Localization for KDE')
	cd ${srcdir}/build/gl
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-he() {
	pkgdesc=('Hebrew Localization for KDE')
	cd ${srcdir}/build/he
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-hi() {
	pkgdesc=('Hindi Localization for KDE')
	cd ${srcdir}/build/hi
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-hr() {
	pkgdesc=('Croatian Localization for KDE')
	cd ${srcdir}/build/hr
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-hu() {
	pkgdesc=('Hungarian Localization for KDE')
	cd ${srcdir}/build/hu
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ia() {
	pkgdesc=('Interlingua Localization for KDE')
	cd ${srcdir}/build/ia
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-is() {
	pkgdesc=('Icelandic Localization for KDE')
	cd ${srcdir}/build/is
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-it() {
	pkgdesc=('Italian Localization for KDE')
	cd ${srcdir}/build/it
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ja() {
	pkgdesc=('Japanese Localization for KDE')
	cd ${srcdir}/build/ja
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-kk() {
	pkgdesc=('Kazakh Localization for KDE')
	cd ${srcdir}/build/kk
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-km() {
	pkgdesc=('Khmer Localization for KDE')
	cd ${srcdir}/build/km
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ko() {
	pkgdesc=('Korean Localization for KDE')
	cd ${srcdir}/build/ko
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-lt() {
	pkgdesc=('Lithuanian Localization for KDE')
	cd ${srcdir}/build/lt
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-lv() {
	pkgdesc=('Latvian Localization for KDE')
	cd ${srcdir}/build/lv
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-mr() {
	pkgdesc=('Marathi Localization for KDE')
	cd ${srcdir}/build/mr
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-nb() {
	pkgdesc=('Norwegian Bokmal Localization for KDE')
	cd ${srcdir}/build/nb
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-nds() {
	pkgdesc=('Low Saxon Localization for KDE')
	cd ${srcdir}/build/nds
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-nl() {
	pkgdesc=('Dutch Localization for KDE')
	cd ${srcdir}/build/nl
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-nn() {
	pkgdesc=('Norwegian Nynorsk Localization for KDE')
	cd ${srcdir}/build/nn
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-pa() {
	pkgdesc=('Panjabi/Punjabi Localization for KDE')
	cd ${srcdir}/build/pa
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-pl() {
	pkgdesc=('Polish Localization for KDE')
	cd ${srcdir}/build/pl
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-pt() {
	pkgdesc=('Portuguese Localization for KDE')
	cd ${srcdir}/build/pt
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-pt_br() {
	pkgdesc=('Brazilian Portuguese Localization for KDE')
	cd ${srcdir}/build/pt_BR
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ro() {
	pkgdesc=('Romanian Localization for KDE')
	cd ${srcdir}/build/ro
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ru() {
	pkgdesc=('Russian Localization for KDE')
	cd ${srcdir}/build/ru
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-si() {
	pkgdesc=('Sinhala Localization for KDE')
	cd ${srcdir}/build/si
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-sk() {
	pkgdesc=('Slovak Localization for KDE')
	cd ${srcdir}/build/sk
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-sl() {
	pkgdesc=('Slovenian Localization for KDE')
	cd ${srcdir}/build/sl
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-sr() {
	pkgdesc=('Serbian Localization for KDE')
	cd ${srcdir}/build/sr
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-sv() {
	pkgdesc=('Swedish Localization for KDE')
	cd ${srcdir}/build/sv
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-tg() {
	pkgdesc=('Tajik Localization for KDE')
	cd ${srcdir}/build/tg
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-th() {
	pkgdesc=('Thai Localization for KDE')
	cd ${srcdir}/build/th
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-tr() {
	pkgdesc=('Turkish Localization for KDE')
	cd ${srcdir}/build/tr
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-ug() {
	pkgdesc=('Uyghur Localization for KDE')
	cd ${srcdir}/build/ug
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-uk() {
	pkgdesc=('Ukrainian Localization for KDE')
	cd ${srcdir}/build/uk
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-vi() {
	pkgdesc=('Vietnamese Localization for KDE')
	cd ${srcdir}/build/vi
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-wa() {
	pkgdesc=('Walloon Localization for KDE')
	cd ${srcdir}/build/wa
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-zh_cn() {
	pkgdesc=('Chinese Simplified Localization for KDE')
	cd ${srcdir}/build/zh_CN
	make DESTDIR=${pkgdir} install
}

package_kde-l10n-zh_tw() {
	pkgdesc=('Chinese Traditional Localization for KDE')
	cd ${srcdir}/build/zh_TW
	make DESTDIR=${pkgdir} install
}

